<? 	
$pdf = Yii::createComponent('application.extensions.MPDF53.mpdf');
$contador=count($dataProvider->alumnos);
$html.='

<html>
	<head>
		<link rel="stylesheet" type="text/css" href="'.Yii::app()->request->baseUrl.'/css/pdf.css" />
	</head>
	<body>
		<img width="60px" height="120px" src="'.Yii::app()->request->baseUrl.'/images/logo.jpg"/>
		<div class="datos">
			<p align="center" class="titulo">LISTADO DE ALUMNOS</p>
			<p align="center" class="subtitulo">'.strtoupper($model->getCursoData()).'</p>
			<p align="center" class="subtitulo">'.strtoupper($model->periodo->PeriodoAnio).'</p>
			
		</div>
		<br><br>
		<table class="tabla">
			<tr class="principal" >
				<th width="5%">&nbsp;Registro</th>
				<th width="5%">&nbsp;Orden</th>
				<th width="15%">&nbsp;Apellido Paterno</th>
				<th width="15%">&nbsp;Apellido Materno</th>
				<th width="15%">&nbsp;Nombres</th>
								
			</tr>';
	
			foreach ($dataProvider as $i=>$alumno){
				$i++;
				$html.=' 
				<tr class="odd">
					<td width="5%">&nbsp;'.$alumno->idalumno.'</td>
					<td width="5%">&nbsp;'.$i.'</td>
					<td width="15%">&nbsp;'.$alumno->user->apellido_paterno.'</td>
					<td width="15%">&nbsp;'.$alumno->user->apellido_materno.'</td>
					<td width="15%">&nbsp;'.$alumno->user->nombres.'</td>
							
				</tr>';
			}
		$html.='</table>
	</body>
</html>';

//$header=$header.'<img width="60px" height="120px" src="'.Yii::app()->request->baseUrl.'/images/logo.jpg"/>';
$mpdf=new mPDF('utf-8', array(190,236),0,'',10,10,6,6,4,9,'P');
//$mpdf->SetHTMLHeader($header);
$mpdf->SetFooter(' {DATE j/m/Y}|Página {PAGENO}/{nbpg}|Sistema Ciudad Educativa');
$mpdf->WriteHTML($html);
$mpdf->Output('Listado_Profesores.pdf','I');
exit; ?>